<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of delete
 *
 * @author Luis Alberto
 */
session_start();
include('include/conf.php');
include("include/GSession.php");
$usrcod = $_SESSION['usr_cod'];
$gsession = new GSession();
if (!$gsession->inicio_session())
     header("location:./index.php");
if($_POST['id'])
{
    $id=$_POST['id'];
    $db = ADONewConnection(DRIVER);
    $db->Connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
    $cns = "delete from mensaje where codigo = $id";
    $rs = $db->Execute($cns);
}
?>